home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / Macintosh Sample Code / SC.013.OOPTESample / BuildOOPTESample next >
Encoding:
Text File  |  1989-09-30  |  1.6 KB  |  65 lines  |  [TEXT/MPS ]

  1. #
  2. #    Apple Macintosh Developer Technical Support
  3. #
  4. #    MultiFinder-Aware Simple TextEdit Sample Application
  5. #
  6. #    OOPTESample
  7. #
  8. #    BuildOOPTESample        -    MPW Script
  9. #
  10. #    Copyright © 1988, 1989 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. #    Version:        
  14. #                    1.10                    10/89
  15. #                    1.00                    04/89
  16. #
  17. #    Components:     
  18. #                    BuildOOPTESample        October 1, 1989
  19. #                    MOOPTESample.p            October 1, 1989
  20. #                    OOPTESample.make        October 1, 1989
  21. #                    TECommon.h                October 1, 1989
  22. #                    TESampleGlue.a            October 1, 1989
  23. #                    TESample.r                October 1, 1989
  24. #                    UApplication.p            October 1, 1989
  25. #                    UApplication.inc1.p        October 1, 1989
  26. #                    UDocument.p                October 1, 1989
  27. #                    UDocument.inc1.p        October 1, 1989
  28. #                    UTEDocument.p            October 1, 1989
  29. #                    UTEDocument.inc1.p        October 1, 1989
  30. #                    UTESample.p                October 1, 1989
  31. #                    UTESample.inc1.p        October 1, 1989
  32. #
  33.  
  34. set AppName OOPTESample
  35. Echo "# `Date -t` ----- Build of {AppName}."
  36.  
  37. set TML 0        # Set this to 1 to use TML Pascal
  38. set ObjFolder ":Objects:"
  39. Newfolder "{ObjFolder}" ≥ Dev:Null || SET Status 0
  40. if {TML} == 1
  41.     set Pascal TMLPascal
  42.     set PasLib "{TMLPLibraries}"TMLPasLib.o
  43.     set MakeFiles "-f {AppName}.make -f TMLRules.make"
  44. else
  45.     set Pascal Pascal
  46.     set PasLib "{PLibraries}"PasLib.o
  47.     set MakeFiles "-f {AppName}.make"
  48. end
  49. export AppName ObjFolder Pascal PasLib
  50.  
  51. Echo "# `Date -t` ----- Analyzing dependencies."
  52.  
  53. Make "{AppName}" {MakeFiles} > "{AppName}".makeout
  54. Echo "# `Date -t` ----- Executing build commands."
  55. "{AppName}".makeout
  56. Delete "{AppName}".makeout
  57.  
  58. Echo "# `Date -t` ----- Done."
  59.  
  60. Set type "`files -i -n -x t "{AppName}" ≥ Dev:Null || Set Status 0`"
  61. Unset ObjFolder
  62.  
  63. Echo -n ∂t; Quote -n "{AppName}"; Echo -n " "
  64.  
  65.